import request from "@/util/request";

export function getLoginKeyByWechat() {
    return request({
        url: import.meta.env.VITE_WEB_API + '/wechat/getLoginKey',
        method: 'get'
    })
}

export function loginCheck(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/wechat/loginCheck',
        method: 'post',
        params
    })
}

/**
 * 获取微信登录链接
 * @param params
 * @returns {*}
 */
export function getWeChatLoginUrl(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/oauth/getWeChatLoginUrl',
        method: 'post',
        data: params
    });
}
